window.onload = function (){
    var hid = sessionStorage.getItem("houseid");
    $.get({
        url:"findoneHouse",
        type:"get",
        data:{
            id:hid
        },
        dataType:"json",
        success:function (data){
            let result = "";
            result = "<DIV class=intro>"+
                "<DIV class=lefter>"+
                    "<H1>"+data.title+"</H1>"+
                    "<DIV class=subinfo>"+data.date+"</DIV>"+
                    "<DIV class=houseinfo>"+
                        "<P>户　　型：<SPAN>"+data.houseTypeModel.tname+"</SPAN></P>"+
                        "<P>面　　积：<SPAN>"+data.area+"m<SUP>2</SUP></SPAN></P>"+
                        "<P>位　　置：<SPAN>"+data.townModel.townname+data.streetModel.sname+"</SPAN></P>"+
                        "<P>联系方式：<SPAN>"+data.phone+"</SPAN></P></DIV></DIV>"+
                "<DIV class=side>"+
                    "<P><A class=bold>北京青鸟房地产经纪公司</A></P>"+
                    "<P>资质证书：有</P>"+
                    "<P>内部编号:1000</P>"+
                    "<P>联 系 人：</P>"+
                    "P>联系电话：<SPAN></SPAN></P>"+
                    "<P>手机号码：<SPAN>暂无</SPAN></P></DIV>"+
                "<DIV class=clear></DIV>"+
                "<DIV class=introduction>"+
                    "<H2><SPAN><STRONG>房源详细信息</STRONG></SPAN></H2>"+
                    "<DIV class=content>"+
                        "<P>"+data.context+"</P></DIV></DIV></DIV>";
            $("#view").html(result);
        }
    })
}